#ifndef NETDISKMAIN_H
#define NETDISKMAIN_H

#include "QHttpRespEventHandlerWindow.h"

namespace Ui {
class NetDiskMain;
}

class NetDiskMain : public QHttpRespEventHandlerWindow{
    Q_OBJECT

public:
    explicit NetDiskMain(QWidget *parent = 0);
    ~NetDiskMain();
    void handleRespSucceedEvent(QNetworkReply *reply, int eventId);
    void handleRespErrorEvent(QNetworkReply::NetworkError error, int eventId);
public slots:
    void r_aboutToClose();
    void r_bytesWritten();
    void r_destroyed();
    void r_downloadProgress();
    void r_error();
    void r_finished();
    void r_metaDataChanged();
    void r_readChannelFinished();
    void r_readyRead();
    void r_sslErrors();
    void r_uploadProgress();
protected:
    void closeEvent(QCloseEvent *);
private:
    Ui::NetDiskMain *ui;
};

#endif // NETDISKMAIN_H
